package cn.taichoo.server.service.impl;

import java.util.List;

import cn.taichoo.server.service.ITenantAppService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import cn.taichoo.server.mapper.TenantAppMapper;
import cn.taichoo.server.domain.TenantAppEntity;

import javax.annotation.Resource;

/**
 * 租户APP关联关系Service业务层处理
 *
 * @author Wuzh
 * @date 2025-03-17
 */
@Service
public class TenantAppServiceImpl extends ServiceImpl<TenantAppMapper, TenantAppEntity> implements ITenantAppService {

    @Resource
    private TenantAppMapper tenantAppMapper;

    /**
     * 查询租户APP关联关系
     *
     * @param id 租户APP关联关系主键
     * @return 租户APP关联关系
     */
    @Override
    public TenantAppEntity selectTenantAppEntityById(Long id) {
        return tenantAppMapper.selectTenantAppEntityById(id);
    }

    /**
     * 查询租户APP关联关系列表
     *
     * @param tenantAppEntity 租户APP关联关系
     * @return 租户APP关联关系
     */
    @Override
    public List<TenantAppEntity> selectTenantAppEntityList(TenantAppEntity tenantAppEntity) {
        return tenantAppMapper.selectTenantAppEntityList(tenantAppEntity);
    }

}
